package cn.fanyamin.web.struts;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * DOCUMENT ME!
 *
 * @author $author$
 * @version $Revision: 1.1 $
 */
public class ChangePageAction extends BaseAction {
	
	private static Log logger = LogFactory.getLog(ChangePageAction.class);
    /**
     * DOCUMENT ME!
     *
     * @param mapping DOCUMENT ME!
     * @param form DOCUMENT ME!
     * @param request DOCUMENT ME!
     * @param response DOCUMENT ME!
     *
     * @return DOCUMENT ME!
     */
    public ActionForward execute(
        ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        logger.debug("Class: " + this.getClass().getName());
        logger.debug("successUrl=[" + request.getParameter("successUrl") + "]");

        return new ActionForward(ACTIONMAPPING_PATH_PREFIX + request.getParameter("successUrl"));
    }
}
